#include "RT.h"
#include <iostream>

using namespace std;

RT::RT()
{
	_size=0;
}



RT::RT(int num)
{
	// array= new something[num];
	_size=num;
};

RT::~RT(){
//delete array;
}



int RT::size()
{
	return _size;
}

void RT::insert(int place, int type, int value)
{
	
	if (type==1) array[place].ID=value;
	if (type==2) array[place].dis=value;
	if (type==3) array[place].f=value;
}

something RT::get(int place)
{
	return array[place];
}

void RT::printRT()
{
	for (int i=0; i<_size ; i++) {
		cout<< array[i].ID << " "<< array[i].dis << " " << array[i].f << "\n";			
	}

}










